home *** CD-ROM | disk | FTP | other *** search
- #
- # SccsId: @(#)Default 1.3 94/11/15
- #
- # An example of a printer script.
- # You may either edit this script or copy it as a new printer (with a
- # different name) and edit the copy appropriately.
- #
- # Every file in FAXclient/printers is assumed to represent a different
- # printer distination and will be part of the printer menu visible from
- # the Faximum Browser
- #
- # $1 - first page number
- # $2 - last page number
- # $3 - name of TIFF file to print
- # $4 - name of file to place print data in
- # (optional...if not present use lp)
- #
- # Note that this script must not produce any output on stdout or stderr
- # unless reporting an error! Any output will be considered an indication
- # of an error and displayed as such.
- #
- DIR=`pkginfo -r FAXclient`
- if [ "$4x" = x ]
- then
- ${DIR}/FAXclient/bin/tiffps -o $1-$2 $3 | lp -s
- else
- ${DIR}/FAXclient/bin/tiffps -o $1-$2 $3 > $4
- fi
- exit 0
-